<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <!--
        * @作者: 陈会丽 *
        * @时间：2024-2025-1 *
        -->
    </head>
    <body>
        <div id="heart">
            <div class="left"></div>
            <div class="right"></div>
            <div class="bottom"></div>
        </div>
    
    <style>
        * {
          box-sizing: border-box;
          margin: 0;
          padding: 0;
        }
        #heart {
          margin: 100px;
          position: relative;
          display: inline-block;
          animation: heart 600ms infinite alternate;
        }
        @keyframes heart {
          0% {
            transform: scale(1);
          }
          100% {
            transform: scale(1.2);
          }
        }
        
        #heart > .bottom {
          width: 50px;
          height: 50px;
          background: red;
          transform: rotate(45deg);
          filter: drop-shadow(0 0 30px red);
        }
        #heart > .left {
          width: 50px;
          height: 50px;
          background: red;
          border-radius: 50% 0 0 50%;
          position: absolute;
          bottom: 100%;
          right: 100%;
          transform: rotate(45deg) translateX(31px);
        }
        #heart > .right {
          width: 50px;
          height: 50px;
          background: red;
          border-radius: 50% 50% 0 0;
          position: absolute;
          bottom: 100%;
          left: 100%;
          transform: rotate(45deg) translateY(31px);
        }

    </style>
    </body>
</html>